<%--
  Created by IntelliJ IDEA.
  User: ffx
  Date: 2021/11/6
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<script src="webjars/jquery/3.6.0/dist/jquery.min.js"></script>
<link rel="stylesheet" href="webjars/bootstrap/4.6.0/css/bootstrap.min.css">
<script src="webjars/bootstrap/4.6.0/js/bootstrap.min.js"></script>

<html>
<head>
    <title>学生列表</title>
</head>
<body>
   <div class="container">
       <div class="panel panel-primary">
           <div class="panel-heading">
               <h3 class="panel-title">学生列表</h3>
           </div>
           <table class="table">
                <tr>
                    <td>学号</td>
                    <td>姓名</td>
                    <td>性别</td>
                    <td>所在班级</td>
                    <td>操作</td>
                </tr>
               <c:forEach items="${list}" var="stu">
               <tr>
                   <td>${stu.sid}</td>
                   <td>${stu.sname}</td>
                   <td>${stu.sex}</td>
                   <td>${stu.cid}</td>
                   <td>
                       <a href="" class="btn btn-success btn-sm">修改</a>
                       <a href="" class="btn btn-danger btn-sm">删除</a>
                   </td>
               </tr>
               </c:forEach>
           </table>
           <div class="panel-footer text-right">

           </div>
       </div>
   </div>
</body>
</html>
